<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@include file="/page/common/public.jspf"%>
<!DOCTYPE HTML>
<html>
<head>
<meta charset=utf-8" />
<title>个人中心</title>
<link rel="stylesheet" type="text/css" href="${path}/css/base.css"/>
<link rel="stylesheet" type="text/css" href="${path}/css/layout.css"/>
<script src="${path }/js/common/jquery1.10.2.min.js"></script>
<script src="${path }/js/common/helper.js?v=${v}"></script>
<script src="${path }/js/common/cookie.js?v=${v}"></script>
</head>
<body bgcolor="#f9f9f9">
        <!-- head -->
		<c:import url="../include/top.jsp"></c:import>
    	<!--主体-->
        <div class="pageCenter registeredBox">
        	<div class="qyMsgBox">
        		<!--左边菜单  -->
            	<c:import url="left.jsp"></c:import>
            	<!--左边菜单  -->
                <div class="qyMsgRight float_r">
                	<div class="qyMsgRightBox1">
                    	<div class="float_l">
                        	<span class="welcomeText">欢迎您,${user.userName }</span>
                            <span class="welcomePic"><a href="#"><img src="${path }/images/qyMsg_06.jpg" /></a>
                            <a href="#"><img src="${path }/images/qyMsg_08.jpg" /></a>
                            <a href="#"><img src="${path }/images/qyMsg_10.jpg" /></a></span>
                        </div>
                        <div class="float_r loginTime">上次登录时间：
                        	<fmt:formatDate value="${user.lastLoginTime}" type="both" pattern="yyyy/MM/dd hh:mm:ss"/> 
                        </div>
                        <div class="clear_both"></div>
                    </div>
                    <div class="qyMsgBoxContent">
                        <div class="qyMsgRightBox2">
                            <div class="float_l qyMsgRightBox2_left">
                                <ul>
                                    <li><b>可用余额：<font color="#fd5621"><fmt:formatNumber value="${(account.baseMoney-account.freezeMoney)/100 }" type="currency" pattern="￥.00"/></font></b></li>
                                    <li>冻结金额：<fmt:formatNumber value="${account.freezeMoney/100 }" type="currency" pattern="￥.00"/></li>
                                    <li>待收本金：<fmt:formatNumber value="${account.baseMoneyCollect/100}" type="currency" pattern="￥.00"/></li>
                                    <li>待收利息：<fmt:formatNumber value="${account.inComeMoneyCollect/100}" type="currency" pattern="￥.00"/></li>
                                </ul>   
                            </div>
                            <div class="float_l qyMsgRightBox2_center">
                                <ul>
                                    <li><input type="button" onclick="toImprest()" class="blueBtn w124 marginT_45" value="充值" /></li>
                                    <li><input type="button" onclick="toDraw()" class="greenBtn w124 marginT_20" value="提现"/></li>
                                </ul>
                            </div>
                            <script type="text/javascript">
                            	function toImprest () {
                            		window.location.href = "<%=request.getContextPath()%>/memberCenter/toImprest.htm";
                            	}
								function toDraw () {
									window.location.href = "<%=request.getContextPath()%>/memberCenter/toDraw.htm";
                            	}
                            </script>
                            
                            <div class="float_r qyMsgRightBox2_right">
                                <ul>
                                    <li>累计总收益：<fmt:formatNumber value="${account.totalIncomeMoney/100}" type="currency" pattern="￥.00"/></li>
                                </ul>
                            </div>
                            <div class="clear_both"></div>
                        </div>
                        <div class="qyMsgRightBox5">
                        	<p class="float_l">下个收款日<span class="qyMsgRightBox5_time">${nextInfos[0] eq '' ? '暂无' : nextInfos[0] }</span></p>
                        	<p class="float_l marginL_60">收款金额<span class="qyMsgRightBox5_money"><fmt:formatNumber value="${(nextInfos[2] + nextInfos[3])/100}" type="currency" pattern="￥.00"/></span></p>
                            <p class="float_r">收款笔数<span class="qyMsgRightBox5_money">${nextInfos[1] eq '' ? '0' : nextInfos[1]}笔</span></p>
                            <div class="clear_both"></div>
                        </div>    
                    </div>
                </div>
                <div class="clear_both"></div> 
         	</div>       
        </div>
    	<!--主体-->
	
<!--foot-->
	<c:import url="../include/foot.jsp"></c:import>
<!--foot--> 
</body>
</html>